package com.jbat.gwt.tiledmapcreator.client.places;

import com.google.gwt.place.shared.PlaceController;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.event.shared.EventBus;

/**
 * Boiler plate for activities and places.
 */
public class PlaceControllerProvider implements Provider<PlaceController> {
  private final EventBus eventBus;

  @Inject
  public PlaceControllerProvider(EventBus eventBus) {
    this.eventBus = eventBus;
  }

  @Override
  public PlaceController get() {
    return new PlaceController(eventBus);
  }

}
